<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		<a href='javascript:;' class="on"><em>角色管理</em></a><span>|</span><a
			href='/Role/add/'><em>添加角色</em></a>
	</div>
</div>
<div class="table-list pad-lr-10">
	<form name="myform" action="/Role/listorder/" method="post">
		<table width="100%" cellspacing="0">
			<thead>
				<tr>
					<th width="10%">排序</th>
					<th width="10%">ID</th>
					<th width="15%" align="left">角色名称</th>
					<th width="265" align="left">角色描述</th>
					<th width="5%" align="left">状态</th>
					<th class="text-c">管理操作</th>
				</tr>
			</thead>
			<tbody>
				<?php
				if(!empty($Rolelist)){
				   foreach ($Rolelist as $val) { 
				?>
				<tr>
					<td width="10%" align="center"><input
						name='listorders[<?php echo $val['AdminRole']['roleid'] ?>]' type='text' size='3'
						value='<?php echo $val['AdminRole']['listorder'] ?>' class="input-text-c"></td>
					<td width="10%" align="center"><?php echo $val['AdminRole']['roleid'] ?></td>
					<td width="15%"><?php echo $val['AdminRole']['rolename'] ?></td>
					<td width="265"><?php echo $val['AdminRole']['description'] ?></td>
					<td width="5%"><?php if($val['AdminRole']['disabled']==0) { ?> <a
							href="javascript:;" onclick="set_disabled(<?php echo $val['AdminRole']['roleid'] ?>,1)">
							<?php }else{ ?> <a href="javascript:;"
							onclick="set_disabled(<?php echo $val['AdminRole']['roleid'] ?>,0)"><?php } ?> 
							<?php if($val['AdminRole']['disabled']==0) { ?> <font color="red">√</font> <?php }else{ ?>
						<font color="blue">×</font> <?php } ?> </a></td>
					<td class="text-c"><?php if($val['AdminRole']['roleid']==1) { ?> <font
							color="#cccccc">权限设置</font> <?php }else{ ?> <a href="javascript:;"
							onclick="setting_role(<?php echo $val['AdminRole']['roleid'] ?>, '<?php echo $val['AdminRole']['rolename'] ?>')">权限设置</a>
						<?php } ?> | <?php if($val['AdminRole']['roleid']==1) { ?> <font color="#cccccc">栏目权限</font>
						<?php }else{ ?> <a href="javascript:void(0)"
							onclick="setting_cat_priv(<?php echo $val['AdminRole']['roleid'] ?>, '<?php echo $val['AdminRole']['rolename'] ?>')">栏目权限</a><?php } ?>
						| <a href="/Role/member/<?php echo $val['AdminRole']['roleid'] ?>/">成员管理</a> | 
						<?php if($val['AdminRole']['roleid']==1) { ?> <font color="#cccccc">修改</font>
						<?php }else{ ?> <a href="/Role/edit/<?php echo $val['AdminRole']['roleid'] ?>/">修改</a><?php } ?> | 
						<?php if($val['AdminRole']['roleid']==1) { ?> <font color="#cccccc">删除</font>
						<?php }else{ ?> <a href="javascript:;"
							onclick="delete_role(<?php echo $val['AdminRole']['roleid'] ?>)">删除</a><?php } ?></td>
				</tr>
				<?php } } ?>
			</tbody>
		</table>
		<div class="btn">
			<input type="submit" class="button" name="dosubmit" value="排序" />
		</div>
	</form>
</div>
</body>